

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link href="/ssm/consumer/css/style.css" rel='stylesheet' type='text/css' />
		<link rel="stylesheet" href="/ssm/static/system/layui/css/layui.css"
          media="all" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!--webfonts-->
		<!--//webfonts-->
	   <style>
         	.layui-form-item .layui-form-label {
	            width: 145px;
	        }
	        .layui-form-item .layui-input-inline {
	            width: 395px;
	        }
	        
        .layui-input{
	        	width: 100%;
			    height: 36px;
			    border-radius: 2px;
			    border: 1px solid #9aa0a7;
			    line-height: 36px;
			    text-indent: 10px;
			    font-size: 14px;
			    background-color: #fff;
			    -webkit-transition: border-color .2s,box-shadow .2s;
			    transition: border-color .2s,box-shadow .2s;
	        }
	    </style>
	</head>

	<body>
		<div class="main" align="center">
			<div class="header">
				<h1>找回密码</h1>
			</div>
			<p></p>
			<form method="post" action="" class="layui-form model-form">
				<div class="layui-form-item">
					<div class="layui-inline">
		            	<label style="text-align: left;" class="layui-form-label">请填写账号：</label>
		            	<div class="layui-input-inline">
		                	<input id="username" style="width: 100%;height: 36px;" autocomplete="off" placeholder=""  type="text" class="layui-input"  lay-verify="required" required />
		            	</div>
					</div>
				</div>
				 <div class="layui-form-item model-form-footer">
		            <button class="layui-btn layui-btn-primary" type="button" id="submitReg">获取密码</button>
		        </div>
			</form>

		</div>
		<!-----start-copyright---->

		<!-----//end-copyright---->
		<script type="text/javascript" src="/ssm/consumer/js/jquery.min.js"></script>
		<script type="text/javascript">
		$("#submitReg").click(function(){
			   var username = $("#username").val();
			   if(username){
			   		var qUrl="/ssm/consumer/zhaohui.do";
					 var postData = {
				                username : username
				            };
			            $.post(qUrl,postData,function(res){
			             if(res.code=="01"){
			                 alert("账号密码已发送至您的邮箱");
			             }else{
			            	 alert(res.body);
			             }
		            })
			   }else{
					alert("请填写完整");		   
			   }
			   return false;
		   })
		
		</script>
	</body>
	
</html>